package com.yjc.hire.task;


import com.yjc.hire.utils.RetryComponet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


@Component
public class SMSTask {

    @Autowired
    private RetryComponet retryComponet;
    @Async
    public void sendSMSTask(){
        boolean sent = retryComponet.sendSmsWithRetry();

    }

}
